package com.cheetah.start.system.admin.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cheetah.start.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

/**
 * 系统管理员
 *
 * @author xjh
 * @date 2021/08/15
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "sys_admin")
public class SysAdmin extends BaseEntity {

    /** 管理员 */
    @TableId(value = "admin_id")
    private Integer adminId;

    /** 账号 */
    @NotBlank(message = "账号不能为空")
    private String name;

    /** 密码 */
    @NotBlank(message = "密码不能为空")
    private String password;
}
